JBoss Community Archive (Read Only)

Teiid 8.3

Type Conversion Functions

Within your queries, you can convert between datatypes using the CONVERT or CAST keyword. See also Type Conversions

Function

Definition

CONVERT(x, type)

Convert x to type, where type is a Teiid Base Type

CAST(x AS type)

Convert x to type, where type is a Teiid Base Type

These functions are identical other than syntax; CAST is the standard SQL syntax, CONVERT is the standard JDBC/ODBC syntax.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:38:10 UTC, last content change 2013-03-14 16:28:33 UTC.